package com.hzy.oms.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单售后业务对象 oms_aftersale_item
 *
 * @author zengxin
 * @date 2023-10-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AftersaleItemBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;

    /**
     * 售后单id
     */
    @NotNull(message = "售后单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long aftersaleId;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 子订单id
     */
    @NotNull(message = "子订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderItemId;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal returnAmount;

    /**
     * 退货数量
     */
    @NotNull(message = "退货数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer quantity;


}
